<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\GraduationEligibleAudit */

$this->title = $model->ZYMC.'专业毕业生资格审核';
$this->params['breadcrumbs'][] = ['label' => 'Graduation Eligible Audits', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="graduation-eligible-audit-view page">

    <h1 class="text-center">
        广西中等职业学校<?= $model->bYSH->BYND ?>毕业生资格审核<br/>
        （成绩与操行）与证书验印登记表
    </h1>
    <br/>

    <p class="row">
        <span class="col-sm-6">学校名称（盖章）: <?= Html::encode($model->bYSH->XXMC) ?></span>
        <span class="col-sm-3">专业名称: <?= Html::encode($model->ZYMC) ?></span>
    </p>
    <p class="row">
        <span class="col-sm-3">招生类别: <?= Html::encode($model->ZSLB) ?></span>
        <span class="col-sm-3">教学形式: <?= Html::encode($model->JXXS) ?></span>
        <span class="col-sm-3">学制: <?= Html::encode($model->XZ) ?></span>
        <span class="col-sm-3">入学时间: <?= Html::encode($model->RXSJ) ?></span>
    </p>

    <table id="t1" class="table table-bordered">
        <tr>
            <td rowspan="2">序<br>号</td>
            <td rowspan="2">姓名</td>
            <td rowspan="2">性别</td>
            <td rowspan="2">身份证号码</td>
            <td colspan="4">各类课程综合成绩</td>
            <td>毕业证书编号</td>
        </tr>
        <tr>
            <td>操行</td>
            <td>基础课<br>学时</td>
            <td>专业课<br>学时</td>
            <td>实习<br>学时</td>
            <td>桂教中专毕字</td>
        </tr>
        <?php foreach($model->graduationEligibleStudents as $student) { $idx++; ?>
        <tr>
            <td><?= $idx ?></td>
            <td>
                <?= Html::a($student->XSXM, [
                    'graduation-eligible-student/view', 
                    'BYZGSHID'=>$student->BYZGSHID, 
                    'XSID'=>$student->XSID]) ?>
            </td>
            <td><?= Html::encode($student->XB) ?></td>
            <td><?= Html::encode($student->SFZHM) ?></td>
            <td><?= Html::encode($student->CX) ?></td>
            <td><?= Html::encode($student->GGJCK) ?></td>
            <td><?= Html::encode($student->ZYJNK) ?></td>
            <td><?= Html::encode($student->BYSX) ?></td>
            <td><?= Html::encode($student->BYZBH) ?></td>
        </tr>
        <?php } ?>
    </table>
    
    <p class="row">
        <span class="col-sm-4">填表人: <?= Html::encode($model->TBR) ?></span>
        <span class="col-sm-4">审核人: <?= Html::encode($model->SHR) ?></span>
        <span class="col-sm-4">填表日期: <?= date('Y 年 m 月 d 日', $model->TBRQ) ?></span>
    </p>
    
<style>
.page{
    padding: 3.5cm 2cm 3cm;
    background-color: white;
}
#t1 tbody td{
    text-align:center;
    vertical-align:middle;
}
.opinion .content{
    height:6em;
}
.opinion .date{
    text-align:right;
    margin-right:2em;
}

@media print{
    .no-print{
        display: none;
    }
    .wrap{
        margin:0;
        padding:0;
    }
    .wrap .container{
        padding:0;
    }
    .table.table-bordered,
    .table.table-bordered td,
    .table.table-bordered th{
        border-color: black !important;
        border-top-color: black !important;
        border-left-color: black !important;
        border-right-color: black !important;
        border-bottom-color: black !important;
    }
    a[href]::after{
        display:none
    }
}
</style>

</div>
